/**
 * 专门处理action
 */
const airData = []
const reducer = (state = airData, action)=>{
    //发送一个action对象
    switch(action.type){
        case 'init_airdata':
            console.log('reducer',state, action)
            return Object.assign({}, state, action)
        case 'get_date_list':
            let newState = Object.assign({}, state)
            return newState
        default:
            return state
    }
}
export {
    reducer
}